From: Paul Eggert Date: Sun, 23 Jan 2011 04:33:12 +0000 (-0800) Subject: * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5094^2 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a5151692c35db003ab47a37aa348643b2cee5600;p=emacs.git * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash when calling XpmCreatePixmapFromData. --- diff --git a/src/ChangeLog b/src/ChangeLog index 0c383f2e71f..7850d191c20 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-01-23 Paul Eggert + * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash + when calling XpmCreatePixmapFromData. + Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h. * lisp.h (SSDATA): New macro. All uses of (char *) SDATA (x) replaced with SSDATA (x), diff --git a/src/image.c b/src/image.c index 542968d2a76..1cf16f6eeb1 100644 --- a/src/image.c +++ b/src/image.c @@ -3334,7 +3334,7 @@ x_create_bitmap_from_xpm_data (struct frame *f, const char **bits) attrs.valuemask |= XpmColormap; rc = XpmCreatePixmapFromData (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), - bits, &bitmap, &mask, &attrs); + (char **) bits, &bitmap, &mask, &attrs); if (rc != XpmSuccess) { XpmFreeAttributes (&attrs);